package com.wanlong.sys.model;

import com.wanlong.base.model.BaseModel;

import java.io.Serializable;
import java.util.Date;

public class SysUser extends BaseModel {


    private String loginName;

    private String password;

    private String salt;

    private String userName;

    private Integer status;

    private Long[] role;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName == null ? null : loginName.trim();
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt == null ? null : salt.trim();
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName == null ? null : userName.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Long[] getRole() {
        return role;
    }

    public void setRole(Long[] role) {
        this.role = role;
    }

    @Override
    public String toString() {
        return "SysUser{" +
                "id=" + super.getId() +
                ", loginName='" + loginName + '\'' +
                ", password='" + password + '\'' +
                ", salt='" + salt + '\'' +
                ", userName='" + userName + '\'' +
                ", status=" + status +
                ", gmtCreate=" + super.getGmtCreate() +
                ", gmtModified=" + super.getGmtModified() +
                '}';
    }
}